<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header"></head>
<body>

<nav th:replace="layouts::navbar"></nav>

<div class="container">
    <h3>评论</h3>
    <hr>

    <a th:href="@{/comments/new}" class="btn btn-primary btn-sm mb-3">提交评论</a>
    <br>
    <table class="table table-bordered table-striped">
        <thead class="thead-dark">
        <tr>
            <th>评论好坏</th>
            <th>最终</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="aComment : ${comments}">
            <td th:text="${aComment.kind}"></td>
            <td th:text="${aComment.context}"></td>
        </tr>
        </tbody>
    </table>
</div>

</body>
</html>